package com.example.demo.mybatis.model;

import java.util.Date;
import javax.persistence.*;

@Table(name = "core_user")
public class CoreUser {
    @Id
    private Integer uid;

    private String username;

    private String password;

    /**
     * 总积分
     */
    private Integer credits;

    /**
     * 级别积分
     */
    @Column(name = "level_credits")
    private Integer levelCredits;

    /**
     * 状态：0正常 1删除
     */
    private Boolean status;

    @Column(name = "last_login_time")
    private Date lastLoginTime;

    /**
     * 最后登录ip
     */
    @Column(name = "last_login_ip")
    private Integer lastLoginIp;

    /**
     * 第三方登录绑定
     */
    private String openid;

    /**
     * 是否为系统用户
     */
    @Column(name = "is_robot")
    private Byte isRobot;

    @Column(name = "created_time")
    private Date createdTime;

    @Column(name = "updated_time")
    private Date updatedTime;

    /**
     * 合作方信息
     */
    @Column(name = "partner_id")
    private Integer partnerId;

    /**
     * @return uid
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * @param uid
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取总积分
     *
     * @return credits - 总积分
     */
    public Integer getCredits() {
        return credits;
    }

    /**
     * 设置总积分
     *
     * @param credits 总积分
     */
    public void setCredits(Integer credits) {
        this.credits = credits;
    }

    /**
     * 获取级别积分
     *
     * @return level_credits - 级别积分
     */
    public Integer getLevelCredits() {
        return levelCredits;
    }

    /**
     * 设置级别积分
     *
     * @param levelCredits 级别积分
     */
    public void setLevelCredits(Integer levelCredits) {
        this.levelCredits = levelCredits;
    }

    /**
     * 获取状态：0正常 1删除
     *
     * @return status - 状态：0正常 1删除
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * 设置状态：0正常 1删除
     *
     * @param status 状态：0正常 1删除
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /**
     * @return last_login_time
     */
    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    /**
     * @param lastLoginTime
     */
    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    /**
     * 获取最后登录ip
     *
     * @return last_login_ip - 最后登录ip
     */
    public Integer getLastLoginIp() {
        return lastLoginIp;
    }

    /**
     * 设置最后登录ip
     *
     * @param lastLoginIp 最后登录ip
     */
    public void setLastLoginIp(Integer lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    /**
     * 获取第三方登录绑定
     *
     * @return openid - 第三方登录绑定
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 设置第三方登录绑定
     *
     * @param openid 第三方登录绑定
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 获取是否为系统用户
     *
     * @return is_robot - 是否为系统用户
     */
    public Byte getIsRobot() {
        return isRobot;
    }

    /**
     * 设置是否为系统用户
     *
     * @param isRobot 是否为系统用户
     */
    public void setIsRobot(Byte isRobot) {
        this.isRobot = isRobot;
    }

    /**
     * @return created_time
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * @param createdTime
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * @return updated_time
     */
    public Date getUpdatedTime() {
        return updatedTime;
    }

    /**
     * @param updatedTime
     */
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    /**
     * 获取合作方信息
     *
     * @return partner_id - 合作方信息
     */
    public Integer getPartnerId() {
        return partnerId;
    }

    /**
     * 设置合作方信息
     *
     * @param partnerId 合作方信息
     */
    public void setPartnerId(Integer partnerId) {
        this.partnerId = partnerId;
    }
}